.class public Lcom/glympse/platform/ImageScaleCache;
.super Ljava/lang/Object;
.source "ImageScaleCache.java"


# instance fields
.field private m_oSourceImage:Lcom/glympse/platform/GImage;


# direct methods
.method public constructor <init>(Lcom/glympse/platform/GImage;)V
    .locals 1
    .parameter "oSourceImage"

    .prologue
    .line 19
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/platform/ImageScaleCache;->m_oSourceImage:Lcom/glympse/platform/GImage;

    .line 21
    iput-object p1, p0, Lcom/glympse/platform/ImageScaleCache;->m_oSourceImage:Lcom/glympse/platform/GImage;

    .line 22
    return-void
.end method


# virtual methods
.method public GetScaledBitmap(II)Lcom/glympse/platform/GBitmap;
    .locals 3
    .parameter "nWidth"
    .parameter "nHeight"

    .prologue
    .line 27
    iget-object v0, p0, Lcom/glympse/platform/ImageScaleCache;->m_oSourceImage:Lcom/glympse/platform/GImage;

    if-nez v0, :cond_0

    .line 29
    const/4 v0, 0x0

    .line 32
    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/glympse/platform/ImageScaleCache;->m_oSourceImage:Lcom/glympse/platform/GImage;

    const/4 v1, 0x2

    const/4 v2, 0x0

    invoke-virtual {v0, p1, p2, v1, v2}, Lcom/glympse/platform/GImage;->GetScaledBitmap(IIII)Lcom/glympse/platform/GBitmap;

    move-result-object v0

    goto :goto_0
.end method

.method public invalidate(Lcom/glympse/platform/GImage;)V
    .locals 0
    .parameter "oSourceImage"

    .prologue
    .line 38
    iput-object p1, p0, Lcom/glympse/platform/ImageScaleCache;->m_oSourceImage:Lcom/glympse/platform/GImage;

    .line 39
    return-void
.end method
